//
//  HomeRecommendModel.m
//  B2C
//
//  Created by xiaowu on 2017/8/15.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import "HomeRecommendModel.h"

@implementation HomeGoodsHomeModel
MJCodingImplementation

@end

@implementation HomeNewsModel

MJCodingImplementation

@end

@implementation HomeAdvModel

MJCodingImplementation

@end


@implementation HomeRecommendModel
MJCodingImplementation

+ (NSDictionary *)mj_objectClassInArray {
    return @{@"goodsnew":[CommodityModel class], @"adv":[HomeAdvModel class], @"goodshome":[CommodityModel class]};
}

- (NSArray *)getBannerImgs {
    NSMutableArray *arr = [NSMutableArray array];
    for (HomeAdvModel *model in self.adv) {
        [arr addObject:model.aimg];
    }
    return arr;
}

@end
